# !/usr/bin/env python
# -*-coding:utf-8 -*-

"""
# Author     ：skyTree
# version    ：python 3.11
# Description：基本响应格式
"""
from pydantic import BaseModel, Field
from typing import Dict, Union, List, Any


class DetailBaseResp(BaseModel):
    code: int = Field(description="状态码")
    msg: str = Field(description="信息")
    data: Union[Dict, List, Any, None] = Field(description="数据")


class BaseResponse(BaseModel):
    code: int = Field(description="状态码")
    msg: str = Field(description="信息")


class PageResponse(BaseModel):
    page: int
    pages: int
    total: int
    data: List
